#!/usr/bin/env node

const Koa = require('koa');

const app = new Koa();

console.log('hello world');

app.use((ctx,next)=>{
  //web服务中，解析请求数据，封装请求数据
  //request parse
  
  //make response
  ctx.body ="hello koa";
});

app.listen(8080);

//console.log('hello world');

